package ysm.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

	@RequestMapping("/admin/hello")
	public String admin() {
		return "hello admin";
	}
	
	@RequestMapping("/db/hello")
	public String db() {
		return "hello dba";
	}
	
	@RequestMapping("/user/hello")
	public String user() {
		return "hello user";
	}
	
	@RequestMapping("/hello")
	public String hello () {
		return "Hello world";
	}
}
